DebugBuild Constant

Used to determine whether the current operating environment is the IDE. DebugBuild is True when you compile the project by clicking the Run button in the Toolbar.

result=DebugBuild

PartTypeDescription
result Boolean True if the application is running within REALbasic, i.e., you chose Debug . Run.


Example

The following example displays a message box only in the IDE.

 #if DebugBuild then
  MsgBox "You're in the IDE"
#endif

See Also

RBVersion, RBVersionString, TargetBigEndian, TargetCarbon, TargetHasGUI, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetMacOSClassic, TargetWin32 constants; #If statement.